﻿<Page x:Class="SGT.Views.RemitoGridView"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:toolkit="http://schemas.microsoft.com/wpf/2008/toolkit"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:Microsoft_Windows_Themes="clr-namespace:Microsoft.Windows.Themes;assembly=PresentationFramework.Aero"
        mc:Ignorable="d"
        DataContext="{Binding Remitos, Source={StaticResource Locator}}" d:DesignHeight="420" d:DesignWidth="721" >


    <Page.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
            <ResourceDictionary Source="/ReuxablesLegacy;component/mercury.xaml" />
                <!-- <ResourceDictionary Source="/Skins/DataGrid.Generic.xaml"/> -->
                <ResourceDictionary Source="/Skins/MainSkin.xaml" />
            </ResourceDictionary.MergedDictionaries>
          
            
        </ResourceDictionary>




    </Page.Resources>

    <Grid>
        <DataGrid AutoGenerateColumns="False" Name="dataGrid1" ItemsSource="{Binding Path=Remitos}" Style="{StaticResource PrettierDataGridStyle}">
            <DataGrid.Columns>
                <DataGridTextColumn Binding="{Binding Path=RemitoID}" Header="Cod." />
                <DataGridTextColumn Binding="{Binding Path=Fecha}" Header="Fecha" Width="90" />
                <DataGridTextColumn Binding="{Binding Path=ProveedorOrigen.Nombre}" Header="Proveedor" Width="60*" />
                <DataGridTextColumn Binding="{Binding Path=Referencia}" Header="Remito externo" Width="50*"/>
                <DataGridTextColumn Binding="{Binding Path=Peso}" Header="Peso" Width="10*"/>
                <DataGridTextColumn Binding="{Binding Path=SectorUsado.Nombre}" Header="Sector" Width="30*"/>
            </DataGrid.Columns>
        </DataGrid>
    </Grid>
</Page>
